package com.zhang.reggie.config;

/**
 * 实现明天理想的唯一障碍是今天的疑虑
 *
 * @Author {张旭军}
 * @Date: 2023/02/04/ 23:01
 * @description
 */
public class OauthContext {


    private static  final  ThreadLocal<String> LOGIN_VAL_THREAD_LOCAL =new ThreadLocal<>();

    public static  String get(){
        return LOGIN_VAL_THREAD_LOCAL.get();
    }
    public static void set(String loginVal){
        LOGIN_VAL_THREAD_LOCAL.set(loginVal);
    }
    public static void clear(){
        LOGIN_VAL_THREAD_LOCAL.remove();
    }
}
